export default [
  {
    path: '/session',
    layout: false,
    routes: [{ name: '登录', path: '/session/login', component: './login' }],
  },
  { path: '/dashboard', name: '首页', icon: 'home', component: './dashboard' },
  { path: '/license', name: '授权管理', icon: 'car', component: './license' },
  { path: '/port-mapping', name: '映射管理', icon: 'NodeIndex', component: './port-mapping' },
  { path: '/report', name: '数据报表', icon: 'gateway',
    routes:[
      { path: '/report/connect', name: '连接历史', icon: 'NodeIndex', component: './report/connect' },
      { path: '/report/traffic', name: '流量统计', icon: 'NodeIndex', component: './report/traffic' },
    ]
   },
  { name: '个人中心', icon: 'table', path: '/list', component: './TableList' },
  { path: '/', redirect: '/dashboard' },
  { path: '*', layout: false, component: './404' },
];
